cmake_minimum_required(VERSION 3.19)

project(entt_test VERSION 1.0)

# enable_testing()
add_executable(entt_test test.cpp)

find_package(GTest)
find_package(gdstk)

target_include_directories(entt_test PRIVATE 
    ${VCPKG_SDK}/include
    )

# -> link libs
file(GLOB_RECURSE VCPKG_SDK_LIB_FILES ${VCPKG_SDK}/lib/*.lib)
set(VCPKG_SDK_LIB ${VCPKG_SDK}/lib)

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    set(VCPKG_SDK_LIB ${VCPKG_SDK}/debug/lib)
    file(GLOB_RECURSE VCPKG_SDK_LIB_FILES ${VCPKG_SDK}/debug/lib/*.lib)
endif()

# target_link_libraries(${target_name} PRIVATE ${VCPKG_SDK_LIB}/vsgQt.lib)
# message(${VCPKG_SDK_LIB_FILES})
target_link_libraries(entt_test PRIVATE ${VCPKG_SDK_LIB_FILES})
    
# target_link_libraries(entt_test PRIVATE gtest::gtest)

